//
//  DataDriver.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/9/18.
//

import Foundation

struct DataDriver: Codable {
    
    var id                  : String? = nil
    var picture             : String? = nil
    var name                : String? = nil
    var intro               : String? = nil
    var address             : String? = nil
    var lon                 : String? = nil
    var lat                 : String? = nil
    var phone               : String? = nil
    var proof               : String? = nil
    var city                : String? = nil
    var introPicture        : String? = nil
    var orders              : String? = nil
    var url                 : String? = nil
    var p1                  : String? = nil
    var p2                  : String? = nil
    var p3                  : String? = nil
    var p4                  : String? = nil
    var guimo               : String? = nil
    var daoyouLang          : String? = nil
    var daoyouLangStr       : String? = nil
    var jianceZizhi         : String? = nil
    var jianceZizhiStr      : String? = nil
    var jianceLeixing       : String? = nil
    var jianceXingzhi       : String? = nil
    var owner               : String? = nil
    var status              : String? = nil
    var shouyang            : String? = nil
    var sales               : String? = nil
    var jianceHangye        : String? = nil
    var statusDes           : String? = nil
    var remark              : String? = nil
    var carAge              : String? = nil
    var pingjia             : String? = nil
    var jiedansum           : String? = nil
    var gongshi             : String? = nil
    var money1              : String? = nil
    var money2              : String? = nil
    var pingjia2            : String? = nil
    var latitude            : String? = nil
    var longitude           : String? = nil
    var sex                 : String? = nil
    var company             : String? = nil
    var headavitor          : String? = nil
    var zans                : String? = nil
    var ttype               : String? = nil
    var agree               : String? = nil
    var validate            : String? = nil
    var companyid           : String? = nil
    var openid              : String? = nil
    var online              : String? = nil
    var fanwei              : String? = nil
    var work                : String? = nil
    var yhq10               : String? = nil
    var android             : String? = nil
    var ios                 : String? = nil
    var wx                  : String? = nil
    var xiaoqu              : String? = nil
    var room                : String? = nil
    var lonGcj02            : String? = nil
    var latGcj02            : String? = nil
    var lon2                : String? = nil
    var lat2                : String? = nil
    var guanzhus            : String? = nil
    var worktel             : String? = nil
    var moneyqr             : String? = nil
    var yezhuPhone          : String? = nil
    var yezhuName           : String? = nil
    var chepai              : String? = nil
    var gongzhonghaoOpenid  : String? = nil
    var gongzhonghaoOpenid2 : String? = nil
    var price               : String? = nil
    var typecode            : String? = nil
    var homecode            : String? = nil
    var carCode             : String? = nil
    var chezhu              : String? = nil
    var sn                  : String? = nil
    var date                : String? = nil
    var outTime             : String? = nil
    var inTime              : String? = nil
    var used                : String? = nil
    var contractId          : String? = nil
    var counts              : String? = nil
    var chezhuOpenid        : String? = nil
    var carId               : String? = nil
    var yuyue               : String? = nil
    var laosPhone           : String? = nil
    var fanyi               : String? = nil
    
    enum CodingKeys: String, CodingKey {
        
        case id                  = "id"
        case picture             = "picture"
        case name                = "name"
        case intro               = "intro"
        case address             = "address"
        case lon                 = "lon"
        case lat                 = "lat"
        case phone               = "phone"
        case proof               = "proof"
        case city                = "city"
        case introPicture        = "intro_picture"
        case orders              = "orders"
        case url                 = "url"
        case p1                  = "p1"
        case p2                  = "p2"
        case p3                  = "p3"
        case p4                  = "p4"
        case guimo               = "guimo"
        case daoyouLang          = "daoyou_lang"
        case daoyouLangStr       = "daoyou_lang_str"
        case jianceZizhi         = "jiance_zizhi"
        case jianceZizhiStr      = "jiance_zizhi_str"
        case jianceLeixing       = "jiance_leixing"
        case jianceXingzhi       = "jiance_xingzhi"
        case owner               = "owner"
        case status              = "status"
        case shouyang            = "shouyang"
        case sales               = "sales"
        case jianceHangye        = "jiance_hangye"
        case statusDes           = "status_des"
        case remark              = "remark"
        case carAge              = "car_age"
        case pingjia             = "pingjia"
        case jiedansum           = "jiedansum"
        case gongshi             = "gongshi"
        case money1              = "money1"
        case money2              = "money2"
        case pingjia2            = "pingjia2"
        case latitude            = "latitude"
        case longitude           = "longitude"
        case sex                 = "sex"
        case company             = "company"
        case headavitor          = "headavitor"
        case zans                = "zans"
        case ttype               = "ttype"
        case agree               = "agree"
        case validate            = "validate"
        case companyid           = "companyid"
        case openid              = "openid"
        case online              = "online"
        case fanwei              = "fanwei"
        case work                = "work"
        case yhq10               = "yhq10"
        case android             = "android"
        case ios                 = "ios"
        case wx                  = "wx"
        case xiaoqu              = "xiaoqu"
        case room                = "room"
        case lonGcj02            = "lon_gcj02"
        case latGcj02            = "lat_gcj02"
        case lon2                = "lon2"
        case lat2                = "lat2"
        case guanzhus            = "guanzhus"
        case worktel             = "worktel"
        case moneyqr             = "moneyqr"
        case yezhuPhone          = "yezhu_phone"
        case yezhuName           = "yezhu_name"
        case chepai              = "chepai"
        case gongzhonghaoOpenid  = "gongzhonghao_openid"
        case gongzhonghaoOpenid2 = "gongzhonghao_openid2"
        case price               = "price"
        case typecode            = "typecode"
        case homecode            = "homecode"
        case carCode             = "car_code"
        case chezhu              = "chezhu"
        case sn                  = "sn"
        case date                = "date"
        case outTime             = "out_time"
        case inTime              = "in_time"
        case used                = "used"
        case contractId          = "contract_id"
        case counts              = "counts"
        case chezhuOpenid        = "chezhu_openid"
        case carId               = "car_id"
        case yuyue               = "yuyue"
        case laosPhone           = "laos_phone"
        case fanyi               = "fanyi"
        
    }
    
    init(from decoder: Decoder) throws {
        let values = try decoder.container(keyedBy: CodingKeys.self)
        
        id                  = try values.decodeIfPresent(String.self , forKey: .id                  )
        picture             = try values.decodeIfPresent(String.self , forKey: .picture             )
        name                = try values.decodeIfPresent(String.self , forKey: .name                )
        intro               = try values.decodeIfPresent(String.self , forKey: .intro               )
        address             = try values.decodeIfPresent(String.self , forKey: .address             )
        lon                 = try values.decodeIfPresent(String.self , forKey: .lon                 )
        lat                 = try values.decodeIfPresent(String.self , forKey: .lat                 )
        phone               = try values.decodeIfPresent(String.self , forKey: .phone               )
        proof               = try values.decodeIfPresent(String.self , forKey: .proof               )
        city                = try values.decodeIfPresent(String.self , forKey: .city                )
        introPicture        = try values.decodeIfPresent(String.self , forKey: .introPicture        )
        orders              = try values.decodeIfPresent(String.self , forKey: .orders              )
        url                 = try values.decodeIfPresent(String.self , forKey: .url                 )
        p1                  = try values.decodeIfPresent(String.self , forKey: .p1                  )
        p2                  = try values.decodeIfPresent(String.self , forKey: .p2                  )
        p3                  = try values.decodeIfPresent(String.self , forKey: .p3                  )
        p4                  = try values.decodeIfPresent(String.self , forKey: .p4                  )
        guimo               = try values.decodeIfPresent(String.self , forKey: .guimo               )
        daoyouLang          = try values.decodeIfPresent(String.self , forKey: .daoyouLang          )
        daoyouLangStr       = try values.decodeIfPresent(String.self , forKey: .daoyouLangStr       )
        jianceZizhi         = try values.decodeIfPresent(String.self , forKey: .jianceZizhi         )
        jianceZizhiStr      = try values.decodeIfPresent(String.self , forKey: .jianceZizhiStr      )
        jianceLeixing       = try values.decodeIfPresent(String.self , forKey: .jianceLeixing       )
        jianceXingzhi       = try values.decodeIfPresent(String.self , forKey: .jianceXingzhi       )
        owner               = try values.decodeIfPresent(String.self , forKey: .owner               )
        status              = try values.decodeIfPresent(String.self , forKey: .status              )
        shouyang            = try values.decodeIfPresent(String.self , forKey: .shouyang            )
        sales               = try values.decodeIfPresent(String.self , forKey: .sales               )
        jianceHangye        = try values.decodeIfPresent(String.self , forKey: .jianceHangye        )
        statusDes           = try values.decodeIfPresent(String.self , forKey: .statusDes           )
        remark              = try values.decodeIfPresent(String.self , forKey: .remark              )
        carAge              = try values.decodeIfPresent(String.self , forKey: .carAge              )
        pingjia             = try values.decodeIfPresent(String.self , forKey: .pingjia             )
        jiedansum           = try values.decodeIfPresent(String.self , forKey: .jiedansum           )
        gongshi             = try values.decodeIfPresent(String.self , forKey: .gongshi             )
        money1              = try values.decodeIfPresent(String.self , forKey: .money1              )
        money2              = try values.decodeIfPresent(String.self , forKey: .money2              )
        pingjia2            = try values.decodeIfPresent(String.self , forKey: .pingjia2            )
        latitude            = try values.decodeIfPresent(String.self , forKey: .latitude            )
        longitude           = try values.decodeIfPresent(String.self , forKey: .longitude           )
        sex                 = try values.decodeIfPresent(String.self , forKey: .sex                 )
        company             = try values.decodeIfPresent(String.self , forKey: .company             )
        headavitor          = try values.decodeIfPresent(String.self , forKey: .headavitor          )
        zans                = try values.decodeIfPresent(String.self , forKey: .zans                )
        ttype               = try values.decodeIfPresent(String.self , forKey: .ttype               )
        agree               = try values.decodeIfPresent(String.self , forKey: .agree               )
        validate            = try values.decodeIfPresent(String.self , forKey: .validate            )
        companyid           = try values.decodeIfPresent(String.self , forKey: .companyid           )
        openid              = try values.decodeIfPresent(String.self , forKey: .openid              )
        online              = try values.decodeIfPresent(String.self , forKey: .online              )
        fanwei              = try values.decodeIfPresent(String.self , forKey: .fanwei              )
        work                = try values.decodeIfPresent(String.self , forKey: .work                )
        yhq10               = try values.decodeIfPresent(String.self , forKey: .yhq10               )
        android             = try values.decodeIfPresent(String.self , forKey: .android             )
        ios                 = try values.decodeIfPresent(String.self , forKey: .ios                 )
        wx                  = try values.decodeIfPresent(String.self , forKey: .wx                  )
        xiaoqu              = try values.decodeIfPresent(String.self , forKey: .xiaoqu              )
        room                = try values.decodeIfPresent(String.self , forKey: .room                )
        lonGcj02            = try values.decodeIfPresent(String.self , forKey: .lonGcj02            )
        latGcj02            = try values.decodeIfPresent(String.self , forKey: .latGcj02            )
        lon2                = try values.decodeIfPresent(String.self , forKey: .lon2                )
        lat2                = try values.decodeIfPresent(String.self , forKey: .lat2                )
        guanzhus            = try values.decodeIfPresent(String.self , forKey: .guanzhus            )
        worktel             = try values.decodeIfPresent(String.self , forKey: .worktel             )
        moneyqr             = try values.decodeIfPresent(String.self , forKey: .moneyqr             )
        yezhuPhone          = try values.decodeIfPresent(String.self , forKey: .yezhuPhone          )
        yezhuName           = try values.decodeIfPresent(String.self , forKey: .yezhuName           )
        chepai              = try values.decodeIfPresent(String.self , forKey: .chepai              )
        gongzhonghaoOpenid  = try values.decodeIfPresent(String.self , forKey: .gongzhonghaoOpenid  )
        gongzhonghaoOpenid2 = try values.decodeIfPresent(String.self , forKey: .gongzhonghaoOpenid2 )
        price               = try values.decodeIfPresent(String.self , forKey: .price               )
        typecode            = try values.decodeIfPresent(String.self , forKey: .typecode            )
        homecode            = try values.decodeIfPresent(String.self , forKey: .homecode            )
        carCode             = try values.decodeIfPresent(String.self , forKey: .carCode             )
        chezhu              = try values.decodeIfPresent(String.self , forKey: .chezhu              )
        sn                  = try values.decodeIfPresent(String.self , forKey: .sn                  )
        date                = try values.decodeIfPresent(String.self , forKey: .date                )
        outTime             = try values.decodeIfPresent(String.self , forKey: .outTime             )
        inTime              = try values.decodeIfPresent(String.self , forKey: .inTime              )
        used                = try values.decodeIfPresent(String.self , forKey: .used                )
        contractId          = try values.decodeIfPresent(String.self , forKey: .contractId          )
        counts              = try values.decodeIfPresent(String.self , forKey: .counts              )
        chezhuOpenid        = try values.decodeIfPresent(String.self , forKey: .chezhuOpenid        )
        carId               = try values.decodeIfPresent(String.self , forKey: .carId               )
        yuyue               = try values.decodeIfPresent(String.self , forKey: .yuyue               )
        laosPhone           = try values.decodeIfPresent(String.self , forKey: .laosPhone           )
        fanyi               = try values.decodeIfPresent(String.self , forKey: .fanyi               )
        
    }
    
    init() {
        
    }
    
}
